var orderlist=new Vue({
    el:".mui-content",
    data:{
        orders:{
            shopName:"仁爱医院",
            orderCode:70267895231450235,
            orderTime:"2017-12-12 15:55:55",
            payWay:"在线支付",
            isUseDiscount:true,
            products:[
                {
                    pImg:staticUrl+"/static/imgs/CardImg.png",
                    pName:"豪华型套餐【男】",
                    pPrice:123.45
                },
                {
                    pImg:staticUrl+"/static/imgs/CardImg.png",
                    pName:"豪华型套餐【女】",
                    pPrice:678.09
                }
            ]
        }
    },
    computed:{
        totalPrice:function(vue)
        {
            var result=0;
            for(var i=0;i<vue.orders.products.length;i++)
            {
                result+=vue.orders.products[i].pPrice;
            }
            return result.toFixed(2);
        }
    }
});